package com.demo.controller.from;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.Valid;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.util.List;

@Data
@ApiModel("创建排场")
public class ostentationListAddFrom {

    //影厅id
    @NotNull
    @Min(1)
    @ApiModelProperty("影厅id")
    private Integer projectionhallId;
    //电影id
    @NotNull
    @Min(1)
    @ApiModelProperty("电影id")
    private Integer productId;

    @Valid
    @Size(min = 1,max = 100)
    private List<ostentationAddFrom> ostentation;
}
